package main

import (
	"math/rand"
	"time"
)

func init() {
	rand.Seed(time.Now().UnixNano())
}

func main() {
	ConcurrentWrite()
}

func ConcurrentWrite() {
	//m := make(map[int]int)
	var flag bool

	f := func() {
		flag = true
		//k, v := rand.Int()%50, rand.Int()%1000
		//m[k] = v
	}
	for i := 0; i < 2000; i++ {
		go f()
	}
	time.Sleep(time.Second * 5)
}